package com.share.device.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.share.common.core.annotation.Excel;
import com.share.common.core.web.domain.BaseEntity;

/**
 * 充电宝柜机对象 cabinet
 *
 * @author ruoyi
 * @date 2025-06-24
 */
public class Cabinet extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 机柜编号 */
    @Excel(name = "机柜编号")
    private String cabinetNo;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 类别id */
    @Excel(name = "类别id")
    private Long cabinetTypeId;

    /** 总插槽数量 */
    @Excel(name = "总插槽数量")
    private Long totalSlots;

    /** 空闲插槽数量 */
    @Excel(name = "空闲插槽数量")
    private Long freeSlots;

    /** 已使用插槽数量 */
    @Excel(name = "已使用插槽数量")
    private Long usedSlots;

    /** 可用充电宝数量 */
    @Excel(name = "可用充电宝数量")
    private Long availableNum;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 当前位置id */
    @Excel(name = "当前位置id")
    private Long locationId;

    /** 设备id */
    @Excel(name = "设备id")
    private String clientId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 状态（0：未投入 1：使用中 -1：故障） */
    @Excel(name = "状态", readConverterExp = "0=：未投入,1=：使用中,-=1：故障")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setCabinetNo(String cabinetNo)
    {
        this.cabinetNo = cabinetNo;
    }

    public String getCabinetNo()
    {
        return cabinetNo;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public void setCabinetTypeId(Long cabinetTypeId)
    {
        this.cabinetTypeId = cabinetTypeId;
    }

    public Long getCabinetTypeId()
    {
        return cabinetTypeId;
    }

    public void setTotalSlots(Long totalSlots)
    {
        this.totalSlots = totalSlots;
    }

    public Long getTotalSlots()
    {
        return totalSlots;
    }

    public void setFreeSlots(Long freeSlots)
    {
        this.freeSlots = freeSlots;
    }

    public Long getFreeSlots()
    {
        return freeSlots;
    }

    public void setUsedSlots(Long usedSlots)
    {
        this.usedSlots = usedSlots;
    }

    public Long getUsedSlots()
    {
        return usedSlots;
    }

    public void setAvailableNum(Long availableNum)
    {
        this.availableNum = availableNum;
    }

    public Long getAvailableNum()
    {
        return availableNum;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }

    public void setLocationId(Long locationId)
    {
        this.locationId = locationId;
    }

    public Long getLocationId()
    {
        return locationId;
    }

    public void setClientId(String clientId)
    {
        this.clientId = clientId;
    }

    public String getClientId()
    {
        return clientId;
    }

    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getUsername()
    {
        return username;
    }

    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getPassword()
    {
        return password;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cabinetNo", getCabinetNo())
            .append("name", getName())
            .append("cabinetTypeId", getCabinetTypeId())
            .append("totalSlots", getTotalSlots())
            .append("freeSlots", getFreeSlots())
            .append("usedSlots", getUsedSlots())
            .append("availableNum", getAvailableNum())
            .append("description", getDescription())
            .append("locationId", getLocationId())
            .append("clientId", getClientId())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
